package org.jeecg.cn.edu.scau.vm.container.enums;

import lombok.Getter;

import static org.jeecg.cn.edu.scau.vm.common.consts.ContainerConst.*;

/**
 * 容器状态枚举量
 */
@Getter
public enum ContainerStatusEnum {

    CREATE_INIT(0, "容器初始化中", WAITING),
    RUNNING(1, "容器运行中", NORMAL),
    CREATE_FAILED(2, "容器创建失败", ERROR),
    STOPPING(3, "容器正在停用中", WAITING),
    STOPPED(4, "容器已停用", NORMAL),
    STOP_FAILED(5, "容器停用失败", ERROR),
    DELETING(6, "容器正在删除", WAITING),
    DELETE_FAILED(7, "容器删除失败", ERROR),
    DOWN(8, "容器异常下线", ERROR),
    STARTING(9, "容器正在启动中", WAITING);


    private final int code;
    private final String message;
    private final String statusType;

    ContainerStatusEnum(int code, String message, String statusType) {
        this.code = code;
        this.message = message;
        this.statusType = statusType;
    }

}
